package com.autologistics.service;

import java.util.List;

import com.autologistics.model.Media;
import com.autologistics.model.Playlist;
import com.autologistics.util.PageBean;

/**
 * @author Clarence
 *
 */
public interface MediaService {
	
	public int addMedia(Media media);
	
/*	public int deleteMedia(Media media);*/
	
	public Media getMedia(Media media);
	
	public List<Media> listMedia();
	
	//
	public PageBean queryForOnePage(final int pageSize, int page);
	public Media getMediaById(int id);
	public void deleteMedia(int mediaId);
	public void updateMedia(Media media);
	
	public List<Media> searchMedia(String filename);
	
	//新增一个媒体播放列表
	public void addPlayList(Playlist playlist);
	
	

}
